﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// 客户
    /// </summary>
    public partial class TCustomer
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 客户编码
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 客户分类Id:对应字典项Id
        /// </summary>
        public int? TypeId { get; set; }
        /// <summary>
        /// 分类名称：对应字典项名称
        /// </summary>
        public string? TypeName { get; set; }
        /// <summary>
        /// 客户地址
        /// </summary>
        public string AddrDetail { get; set; }
        /// <summary>
        /// 责任人
        /// </summary>
        public string ResponsiblePerson { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string Tel { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string MobilePhone { get; set; }
        /// <summary>
        /// 联系人1
        /// </summary>
        public string Contact { get; set; }
        /// <summary>
        /// 联系人1手机
        /// </summary>
        public string ContactMobile { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }
        /// <summary>
        /// 合同号
        /// </summary>
        public string ContractNo { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 排序号
        /// </summary>
        public int DisplayOrder { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDate { get; set; }
        /// <summary>
        /// 创建用户Id
        /// </summary>
        public int? CreateUserId { get; set; }
        /// <summary>
        /// 创建用户名
        /// </summary>
        public string CreateUserName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ModifyDate { get; set; }
        /// <summary>
        /// 修改用户Id
        /// </summary>
        public int? ModifyUserId { get; set; }
        /// <summary>
        /// 修改用户名称
        /// </summary>
        public string ModifyUserName { get; set; }

        /// <summary>
        /// 名称简称
        /// </summary>
        [MaxLength(50)]
        public string Shortname { get; set; }

        /// <summary>
        /// 邮编
        /// </summary>
        [MaxLength(50)]
        public string Postcode { get; set; }

        /// <summary>
        /// 蒙牛客户状态
        /// </summary>
        public bool MengNiuStatus { get; set; }

        /// <summary>
        /// 是否重点客户
        /// </summary>
        public bool MengNiuEmphasis { get; set; }
        /// <summary>
        /// 当前登陆人Id
        /// </summary>
        [NotMapped]
        public int NowUserId { get; set; }

        /// <summary>
        /// 当前登陆人真实姓名
        /// </summary>
        [NotMapped]
        public string NowUserRealName { get; set; }
    }
}
